<template>
    <div>
        <el-card>
            <el-table
                :data="ExamReacordList"
                border
                style="width: 100%">
            <el-table-column
                    prop="date"
                    label="日期"
                    width="180">
            </el-table-column>
            <el-table-column
                    prop="name"
                    label="姓名"
                    width="180">
            </el-table-column>
            <el-table-column
                    prop="address"
                    label="地址">
            </el-table-column>
        </el-table>
        </el-card>
    </div>
</template>

<script>
    import {scoreList} from "../../../request/api";
    import {userExamReacord} from "@/request/api";

    export default {
        name: "index",
        data(){
            return{
                ExamReacordList: []
            }
        },
        methods:{
            getScoreList(){
                userExamReacord().then(res =>{
                    console.log('报考记录',res)
                    this.ExamReacordList = res
                })
            }
        },
        created() {
            this.getScoreList();
        }
    }
</script>

<style scoped>

</style>
